<script>
import config from "./config";
export default {
  onLaunch: function () {
    this.init();
  },
  computed: {
  },
  methods: {
    // 初始化应用配置
    init() {
      this.globalData.config = config;
      
      // 获取hash路由路径
      const hash = window.location.hash;
      console.log('hash116',window.location.hash)
      const path = hash ? hash.substring(1) : null; // 去掉#号
      if (path && path !== '/') {
        this.$tab.reLaunch(path);
      } else {
        this.$tab.reLaunch("/pages/home/index");
      }
    },
  },
};
</script>

<style lang="scss">
@import "@/static/scss/index.scss";
</style>